package com.hrm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hrm.annotation.ExcelColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * <p>
 *
 * </p>
 *
 * @author qiujie
 * @since 2022-01-27
 */
@Data
@Accessors(chain = true)
@TableName("att_room")
@ApiModel(value = "Room对象", description = "会议室表单")
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("会议室id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ExcelColumn("会议室名称")
    @ApiModelProperty("会议室名称")
    @TableField("room_name")
    private String roomName;

    @ApiModelProperty("会议室图片")
    @TableField("img")
    private String img;

    @ApiModelProperty("会议室容量")
    @TableField("num")
    private String num;

    @ExcelColumn("备注")
    @ApiModelProperty("会议室备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("会议室状态，0故障，1正常")
    @TableField("status")
    private Integer status;

    @ExcelColumn("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Timestamp createTime;

    @ExcelColumn("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Timestamp updateTime;

    @ApiModelProperty("逻辑删除，0未删除，1删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer deleteFlag;
}
